home *** CD-ROM | disk | FTP | other *** search
/ Word Play Farm / Word Play Farm.iso / pc / movies / shared.dxr / 00536.ls < prev    next >
Encoding:
Text File  |  1996-07-29  |  3.4 KB  |  143 lines

  1. on dslv
  2.   if not (the optionDown) then
  3.     puppetTransition(23, 2, 0, 0)
  4.   end if
  5. end
  6.  
  7. on wipeR
  8.   if not (the optionDown) then
  9.     puppetTransition(1)
  10.   end if
  11. end
  12.  
  13. on wipeL
  14.   if not (the optionDown) then
  15.     puppetTransition(2)
  16.   end if
  17. end
  18.  
  19. on nav direction
  20.   global directionCast
  21.   set margin to 30
  22.   if (direction contains "l") and (the mouseH < margin) and (the mouseV <= (the stageBottom - the stageTop - margin)) then
  23.     set directionCast to the number of cast "pointLeft"
  24.     set directionMask to the number of cast "pointLeft mask"
  25.   else
  26.     if (direction contains "r") and (the mouseH > (the stageRight - the stageLeft - margin)) and (the mouseV >= margin) then
  27.       set directionCast to the number of cast "pointRight"
  28.       set directionMask to the number of cast "pointRight mask"
  29.     else
  30.       if (direction contains "u") and (the mouseV < margin) and (the mouseH <= (the stageRight - the stageLeft - margin)) then
  31.         set directionCast to the number of cast "pointUp"
  32.         set directionMask to the number of cast "pointUp mask"
  33.       else
  34.         if (direction contains "d") and (the mouseV > (the stageBottom - the stageTop - margin)) then
  35.           set directionCast to the number of cast "pointDown"
  36.           set directionMask to the number of cast "pointDown mask"
  37.         else
  38.           if (the mouseV < margin) and (the mouseH > (the stageRight - the stageLeft - margin)) then
  39.             set directionCast to the number of cast "questionMark"
  40.             set directionMask to the number of cast "questionMark mask"
  41.           else
  42.             set directionCast to 0
  43.             set directionMask to 0
  44.           end if
  45.         end if
  46.       end if
  47.     end if
  48.   end if
  49.   cursor([directionCast, directionMask])
  50. end
  51.  
  52. on helpMe
  53.   global helpTxt
  54.   put helpTxt into field "helpFld"
  55.   set helpLen to length(helpTxt) * 10
  56.   set offset to 640 - helpLen
  57.   repeat while the mouseDown
  58.     set the locH of sprite the clickOn to offset
  59.     updateStage()
  60.   end repeat
  61.   set the locH of sprite the clickOn to 600
  62.   updateStage()
  63. end
  64.  
  65. on rollOrb sprt
  66.   if rollOver(sprt) then
  67.     set the movieRate of sprite sprt to 1
  68.     updateStage()
  69.   else
  70.     set the movieRate of sprite sprt to 0
  71.   end if
  72. end
  73.  
  74. on btnRollover first, last
  75.   repeat with which = first to last
  76.     if rollOver(which) then
  77.       set whichName to the name of cast the castNum of sprite which
  78.       if (whichName contains "Lit") or (whichName contains "Down") then
  79.         nothing()
  80.       else
  81.         puppetSprite(which, 1)
  82.         set the castNum of sprite which to the castNum of sprite which + 1
  83.         updateStage()
  84.         repeat with off = first to last
  85.           if off <> which then
  86.             puppetSprite(off, 0)
  87.           end if
  88.         end repeat
  89.       end if
  90.       exit repeat
  91.       next repeat
  92.     end if
  93.     puppetSprite(which, 0)
  94.     updateStage()
  95.   end repeat
  96. end
  97.  
  98. on wait secs
  99.   startTimer()
  100.   repeat while the timer < ((secs * 60) - 1)
  101.   end repeat
  102. end
  103.  
  104. on wind
  105.   if not soundBusy(4) then
  106.     updateStage()
  107.   end if
  108. end
  109.  
  110. on timeout
  111.   set the timeoutLapsed to 0
  112. end
  113.  
  114. on countTime
  115.   startTimer()
  116.   repeat while the timer < 20
  117.     nothing()
  118.   end repeat
  119. end
  120.  
  121. on holdSound
  122.   updateStage()
  123.   repeat while soundBusy(1)
  124.     nothing()
  125.   end repeat
  126. end
  127.  
  128. on soundDown
  129.   repeat with t = 7 down to 0
  130.     set the soundLevel to t
  131.     updateStage()
  132.     countTime()
  133.   end repeat
  134. end
  135.  
  136. on soundUp
  137.   repeat with t = 0 to 7
  138.     set the soundLevel to t
  139.     updateStage()
  140.     countTime(1)
  141.   end repeat
  142. end
  143.